package be.destin.memolog;

import java.util.Date;

/**
 * This class stores Usage counts for three levels: user's, his/her friends, everybody
 * 
 * @author Christophe
 *
 */
public class UsageCount {
	long mines, friends, theirs = 0;
	Date min = new Date(Long.MAX_VALUE);
	Date max = new Date(0);

	public String toString () {
		return (mines > 0 ? "["+mines+']':"")
				+ (friends > 0 ? "("+friends+')':"")
				+ (theirs > 0 ? ""+theirs:"");
	}

	public long getMines() {
		return mines;
	}

	public void setMines(long mine) {
		this.mines = mine;
	}

	public long getFriends() {
		return friends;
	}

	public void setFriends(long friends) {
		this.friends = friends;
	}

	public long getTheirs() {
		return theirs;
	}

	public void setTheirs(long all) {
		this.theirs = all;
	}

	public Date getMinDate() {
		return min;
	}

	public void setMinDate(Date min) {
		this.min = min;
	}

	public Date getMaxDate() {
		return max;
	}

	public void setMaxDate(Date max) {
		this.max = max;
	}
}
